package sam.sucl.warlock;

import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
    private Context context=null;
	private Button btnData;
	private Button btnCard;
	private Button btnFight;
	private Button btnHelp;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        context=this;
        
        btnData=(Button)findViewById(R.id.btnData);
        btnCard=(Button)findViewById(R.id.btnCard);
        btnFight=(Button)findViewById(R.id.btnFight);
        btnHelp=(Button)findViewById(R.id.btnHelp);
        
        btnData.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent=new Intent(context,DataRecordAct.class);			
				startActivity(intent);
			}
		});
        
        btnCard.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent=new Intent(context,CardAct.class);			
				startActivity(intent);
			}
		});
        
        btnFight.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent=new Intent(context,FightAct.class);			
				startActivity(intent);
			}
		});
        
        btnHelp.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent=new Intent(context,HelpAct.class);			
				startActivity(intent);
			}
		});
    }
    
    

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
